package com.chuxing.system.service.impl;

import com.chuxing.system.service.ConfigService;
import com.chuxing.system.service.IExamService;
import com.chuxing.system.service.IInterviewService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author LiuQi
 * @create 2025-05-20-15:27
 */
@Service
@RequiredArgsConstructor
@Transactional
@Slf4j
public class ConfigServiceImpl implements ConfigService {

    private final IExamService examService;
    private final IInterviewService interviewService;
    @Override
    public void enroll() {
        examService.deleteAll();
        interviewService.deleteAll();
    }

    @Override
    public void checkExamScoreLine(Integer score) {
        examService.checkExamScoreLine(score);
    }

    @Override
    public void checkInterviewScoreLine(Integer score) {
        interviewService.checkInterviewScoreLine(score);
    }
}
